package com.healthy_software.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.healthy_software.dto.*;
import com.healthy_software.entity.User;
import com.healthy_software.result.Result;
import com.healthy_software.vo.UserVO;

import javax.servlet.http.HttpSession;

public interface UserService extends IService<User> {
    Result login(LoginFormDTO loginForm, HttpSession session);

    Result sendCode(String phone);

    Result register(RegisterDTO registerDTO);

    Result resetPassword(ResetPasswordDTO resetPasswordDTO);

    User wxLogin(UserWXLoginDTO userWXLoginDTO);

    Result setBasicUserInfo(UserVO userVO);

    Result setUserHealthyInfo(UserHealthyInfoDTO userHealthyInfoDTO);

    Result<User> getUserById(Long userId);
}
